<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

<%@page import="com.webmining.sherlock.util.search.Constants" %>

<%
    String defaultWebSite;
    defaultWebSite = "http://";
    defaultWebSite += request.getServerName();
    if (request.getServerPort() != 80) {
        defaultWebSite += ":" + request.getServerPort();
    }
    defaultWebSite += "/";
%>
<html>
<head>
    <title>Sherlock Admin</title>
    <link rel="stylesheet" href="/css/main.css" type="text/css"/>
    <link rel="stylesheet" href="/css/admin.css" type="text/css"/>
</head>

<body>
<c:import url="/fragments/header.jsp"/>
<div style="position: relative">
    <span id="admin-content">
        <div id="admin-index-form">
            <h3 class="welcome-header">Welcome to Sherlock <%= Constants.SHERLOCK_RELEASE %> !</h3>

            <form action="setup.jsp">
                <div id="row1">
                    <span id="index-label"> Web site to index:</span>
                    <input type="text" name="website" value="<%= defaultWebSite %>">
                </div>
                <div id="row2">
                    <span class="input-label">Update index every</span>
                    <input type="radio" name="update" value="daily" checked> day
                    <input type="radio" name="update" value="weekly"> week
                </div>
                <input id="start-index" type="submit" value="">
            </form>

        </div>
    </span>
    <span id="admin-decoration">

    </span>
</div>


<img src="/img/start-sherlock-standart.png" style="display: none"/>
<img src="/img/start-sherlock-hover.png" style="display: none"/>
<img src="/img/start-sherlock-pressed.png" style="display: none"/>

</body>

</html>


<%------------------------------------------------------------------------------------------%>

<%--<h3 class="welcome-header">Welcome to Sherlock <%= Constants.SHERLOCK_RELEASE %> !</h3>

<p>Set the website you want to index with Sherlock</p>

<form action="setup.jsp">
    <span class="input-label"> Web site to index:</span> <input type="text" name="website"
                                                                value="<%= defaultWebSite %>"><br />
    <span class="input-label">Update index every</span>
    &nbsp;&nbsp;&nbsp;<input type="radio" name="update" value="daily" checked>day
    &nbsp;&nbsp;&nbsp; <input type="radio" name="update" value="weekly"> week<br><br>
    &nbsp;&nbsp;<input class="start-index" type="submit" value="start sherlock">
    <br><br><p>Go back to <a href="/">home</a></p>
</form>--%>